home *** CD-ROM | disk | FTP | other *** search
- Path: news.islandnet.com!usenet
- From: Abram Hindle <abehind@islandnet.com>
- Newsgroups: comp.lang.c
- Subject: Newbie: Need Help with keyboard and timing
- Date: 7 Apr 1996 19:21:08 GMT
- Organization: Island Net in Victoria, B.C. Canada
- Message-ID: <4k94j4$328@sanjuan.islandnet.com>
- NNTP-Posting-Host: nettle.islandnet.com
-
- Hi!
- I really need help with getting keys pressed from the keyboard
- but not stopping the program til a key is pressed. What I
- want is IBM compatible way of getting input from the keyboard
- much like basic's INKEY$ command. It's for a small little
- game I'm making.
-
- Also, how do I time using milliseconds like the TIMER in
- basic.
- Here's the basic code:
- t = timer
- .
- .
- .
- do while t + .1 > timer
- so how would I do that in C?
- I use Turbo C++ 3.0 or 3.1
- Any Help would be great!
- please e-mail me at:
- abehind@islandnet.com
- Abram Hindle
-
-
-